<?php 
my_component_load('xl_builder' , false);
my_component_load('testing' , false);
my_component_load('paging' , false);
my_component_load('yi_rpt_pph',false);
$task =  isset($_GET['task']) ? $_GET['task']: '';
$pr_yearly_income_id =isset($_GET['pr_yearly_income_id']) ? (int) $_GET['pr_yearly_income_id'] : 0 ;
$modulname = "Reporting _BN_ Penggajian _BN_ Surat Pajak Penghasilan";
$datenome = date("Ymd_His"); 
 
if($task == "excel_list_of_transfer"){
	header("Content-Type: application/xls");
	header("Content-Disposition: attachment;filename=rpt_spt_yearly_income_{$datenome}.xls");
	echo xl_list_spt($pr_yearly_income_id);
	exit;
}elseif($task == "txt_list_of_transfer"){
	@ob_end_clean(); 
	echo'<pre>';
	echo print_plain($pr_yearly_income_id);
	exit;
}else{
	$pagename = $modulname;
	load_facebox_script();	
	$content = list_laporan($pr_yearly_income_id);
}
generate_my_web($content, $pagename  );
?>